home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZDSPFLD.C < prev    next >
Text File  |  1989-04-09  |  849b  |  21 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzdspfld.c                                                                  │
  4. │Display a string in a given field at a given cursor position with a given   │
  5. │color attribute. The routine pads out with blanks if the string is too      │
  6. │short but no check for a string too long is made.                           │
  7. │                                                                            │
  8. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950                      │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12. jzdspfld(fstr,flen,frow,fcol,fattr)
  13. char *fstr;
  14. int flen,frow,fcol,fattr;
  15. {
  16.   char wbuf[256];
  17.  
  18.   sprintf(wbuf,"%s%s",fstr,jzpad(flen-strlen(fstr),' '));
  19.   jzscrprn(wbuf,frow,fcol,fattr);
  20. }
  21.